-
Notifications
You must be signed in to change notification settings - Fork 45
Send blueprint disks & datasets to simulated sled agent #8358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
a793e4d
to
3f2524b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
blueprint_sleds.insert( | ||
sled_id, | ||
BlueprintSledConfig { | ||
state: SledState::Active, | ||
sled_agent_generation: Generation::new().next(), | ||
sled_agent_generation: 4.into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's up with this number? I feel like it could use a constant and comment.
@@ -1775,6 +1758,10 @@ async fn setup_with_config_impl<N: NexusServer>( | |||
.boxed() | |||
}), | |||
), | |||
( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious why this had to move to after starting Nexus. This configuration mimics what RSS would normally do, right? And that happens before Nexus starts.
|
||
for sled_agent in self.sled_agents.iter().skip(1) { | ||
let generation = Generation::from_u32(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same -- where's this come from?
let zones = | ||
once(from_clone!(self.blueprint_zones)).chain(repeat(vec![])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this constructing a structure with non-empty zones for the first sled agent and no zones for the others?
Fixes #7081, fixes #8222. Tracks disks and datasets added to the blueprint in
nexus-test-utils
, and sends them to the appropriate simulated sled-agents.Also adds trivial but successful execution to the
test_blueprint_planner
introduced in #8287.